package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class DVDregisterTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class DVDregisterTest
{
    /**
     * Default constructor for test class DVDregisterTest
     */
    public DVDregisterTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }
    
    @Test
    public void testAddPerson()
    {
        DVDregister dvdRegister=new DVDregister();
        assertEquals(true, dvdRegister.addDVD(1,"Title","Artist","10-2-1202"));
    }
    
    @Test
    public void testRemovePerson()
    {
        DVDregister dvdRegister=new DVDregister();
        dvdRegister.addDVD(1,"Title","Artist","10-2-1202");
        DVDregister dvdRegister1=new DVDregister();
        dvdRegister1.addDVD(2,"Title","Artist","10-2-1202");
        assertEquals(true, dvdRegister.removeDVD(1));
    }
    
    
    
    @After
    public void tearDown()
    {
    }
}
